package com.hschinese.pronunciation.bean;

import android.media.SoundPool;

/**
 * Created by wo on 2015/11/27.
 */
public class PlayAssetData {
    private SoundPool mSoundPool = null;
    private int resId = -1;
    private int duration = 0;

    public SoundPool getSoundPool() {
        return mSoundPool;
    }

    public void setSoundPool(SoundPool mSoundPool) {
        this.mSoundPool = mSoundPool;
    }

    public int getResId() {
        return resId;
    }

    public void setResId(int resId) {
        this.resId = resId;
    }

    public void stopPlay() {
        if (mSoundPool != null) {
            mSoundPool.stop(resId);
        }
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }
}
